package com.yanshibo.house01_bean.bean;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

//房屋信息
public class Hourse {
	private Integer id;
	
	@NotEmpty(message="小区名称不为空")
	private String name;
	
	@NotEmpty(message="单元楼不为空")
	private String building;
	
	@NotNull(message="门牌号不为空")
	private Integer number;
	private String picture;
	private String status;

	
	@NotNull(message="挂牌时间不为空")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date listingTime;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date rentalTime;
	private Integer typeId;
	private Types typ;

	// 扩展
	private Lei lei; // 房屋类型
	private List<PeiTao> pts;// 房屋配套

	public List<PeiTao> getPts() {
		return pts;
	}

	public void setPts(List<PeiTao> pts) {
		this.pts = pts;
	}

	public Types getTyp() {
		return typ;
	}

	public void setTyp(Types typ) {
		this.typ = typ;
	}

	public Lei getLei() {
		return lei;
	}

	public void setLei(Lei lei) {
		this.lei = lei;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBuilding() {
		return building;
	}

	public void setBuilding(String building) {
		this.building = building;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getListingTime() {
		return listingTime;
	}

	public void setListingTime(Date listingTime) {
		this.listingTime = listingTime;
	}

	public Date getRentalTime() {
		return rentalTime;
	}

	public void setRentalTime(Date rentalTime) {
		this.rentalTime = rentalTime;
	}

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

}
